<template>
  <div class="search">
    <!-- 1.顶部导航栏 -->
    <van-nav-bar left-arrow title="搜索中心" @click-left="$router.back()">
    </van-nav-bar>
    <!-- 2.搜索框 -->
    <van-search
      show-action
      placeholder="请输入搜索关键词"
      shape="round"
      v-model.trim="keyword"
    >
      <template #action>
        <div>搜索</div>
      </template>
    </van-search>

    <!-- 3.推荐词 -->
    <van-cell-group>
      <van-cell title="js" icon="search" />
      <van-cell title="jsa" icon="search" />
    </van-cell-group>

    <!-- 4.搜索历史 -->
    <van-cell-group>
      <van-cell title="历史记录"> </van-cell>
      <van-cell title="单元格">
        <van-icon name="close" />
      </van-cell>
      <van-cell title="单元格">
        <van-icon name="close" />
      </van-cell>
    </van-cell-group>
  </div>
</template>

<script>
export default {
  name: 'search',
  data () {
    return {
      keyword: '' // 搜索关键字
    }
  }
}
</script>

<style lang="less"></style>